<!DOCTYPE html>
<html>
<head>
    <title>修改价位比例</title>
    <meta charset=utf-8>
    <meta name=viewport content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="../../../../start/layui/css/layui.css">
    <script type="text/javascript" src="../../../../start/layui/layui.js"></script>

</head>
<body>
<form class="layui-form" action="">
    <div class="layui-row">
        <div class="layui-col-xs4">
            <div class="grid-demo grid-demo-bg1">
                <div class="layui-inline">
                    <label class="layui-form-label">信息ID：</label>
                    <div class="layui-input-inline" style="width:180px;">
                        <input type="text" name="priceId" id="priceId"  placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-col-xs4">
            <div class="grid-demo">
                <div class="layui-inline">
                    <label class="layui-form-label">提货费：</label>
                    <div class="layui-input-inline" style="width:180px;">
                        <input type="text" name="pickupcharge" id="pickupcharge"  placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-col-xs4">
            <div class="grid-demo grid-demo-bg1">
                <div class="layui-inline">
                    <label class="layui-form-label">送货费：</label>
                    <div class="layui-input-inline" style="width:180px;">
                        <input type="text" name="deliveryexpense" id="deliveryexpense"  placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-row" style="margin-top:10px">
        <div class="layui-col-xs4">
            <div class="grid-demo grid-demo-bg1">
                <div class="layui-inline">
                    <label class="layui-form-label">保费：</label>
                    <div class="layui-input-inline" style="width:180px;">
                        <input type="text" name="premium" id="premium"  placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div></div>
        </div>
        <div class="layui-col-xs4">
            <div class="grid-demo">
                <div class="layui-inline">
                    <label class="layui-form-label">卸货费：</label>
                    <div class="layui-input-inline" style="width:180px;">
                        <input type="text" name="landingcharges" id="landingcharges"  placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div></div>
        </div>
        <div class="layui-col-xs4">
            <div class="grid-demo grid-demo-bg1">
                <div class="layui-inline">
                    <label class="layui-form-label">是否启用：</label>
                    <div class="layui-input-inline" style="width:180px;">
                        <input type="text" name="initiatemode" id="initiatemode"  placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div></div>
        </div>
    </div>

    <div class="layui-row" style="margin-top:10px">
        <div class="layui-col-xs12">
            <div class="grid-demo grid-demo-bg1">
                <div class="layui-form-item layui-form-text" style="width:330px;">
                    <label class="layui-form-label">信息备注：</label>
                    <div class="layui-input-block">
                        <textarea  name="remark" id="remark" placeholder="" class="layui-textarea"></textarea>
                    </div>
                </div></div>
        </div>
    </div>
    <div class="layui-row" style="margin-top:10px">
        <div class="layui-col-xs12">
            <div class="grid-demo">
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit lay-filter="formDemo" style="margin-left:80%">立即提交</button>
                    </div>
                </div>
            </div>
        </div>
    </div>

</form>
</body>
<script>
    layui.use(['form', 'layedit', 'laydate','table'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate
            ,table = layui.table;
        var $ = layui.jquery;
        //日期初始化
        laydate.render({
            elem: '#date'
        });
        laydate.render({
            elem: '#date1'
        });

        //监听提交：提交事件
        form.on('submit(formDemo)', function(data){
            $.ajax({
                type:'post'
                ,url:'../../../../modifyprice'
                ,data:data.field
                ,success:function(obj) {
                    if(obj.length>0){
                        parent.layer.close(1); //再执行关闭
                        //修改成功后刷新父界面
                        window.parent.location.reload();
                    }
                }
            });
            return false;
        });

    });
</script>
</html>